home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Bus / T-Z / Teleprint 1.0.cpt / TelePrint Express™ 1.0 / background_6716.xml < prev    next >
Extensible Markup Language  |  1992-01-28  |  16KB  |  426 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>6716</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_7033.pbm</bitmap>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_33153.css" />
  11.     <part>
  12.         <id>1</id>
  13.         <type>field</type>
  14.         <visible> <true /> </visible>
  15.         <dontWrap> <true /> </dontWrap>
  16.         <dontSearch> <false /> </dontSearch>
  17.         <sharedText> <false /> </sharedText>
  18.         <fixedLineHeight> <true /> </fixedLineHeight>
  19.         <autoTab> <true /> </autoTab>
  20.         <lockText> <true /> </lockText>
  21.         <rect>
  22.             <left>9</left>
  23.             <top>45</top>
  24.             <right>228</right>
  25.             <bottom>119</bottom>
  26.         </rect>
  27.         <style>rectangle</style>
  28.         <autoSelect> <false /> </autoSelect>
  29.         <showLines> <false /> </showLines>
  30.         <wideMargins> <false /> </wideMargins>
  31.         <multipleLines> <false /> </multipleLines>
  32.         <reservedFamily> 0 </reservedFamily>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>0</icon>
  35.         <textAlign>left</textAlign>
  36.         <font>Monaco</font>
  37.         <textSize>9</textSize>
  38.         <textStyle>plain</textStyle>
  39.         <textHeight>12</textHeight>
  40.         <name>BillTo</name>
  41.         <script></script>
  42.     </part>
  43.     <part>
  44.         <id>13</id>
  45.         <type>button</type>
  46.         <visible> <true /> </visible>
  47.         <reserved5> 0 </reserved5>
  48.         <reserved4> 0 </reserved4>
  49.         <reserved3> 0 </reserved3>
  50.         <reserved2> 0 </reserved2>
  51.         <reserved1> 0 </reserved1>
  52.         <enabled> <true /> </enabled>
  53.         <rect>
  54.             <left>100</left>
  55.             <top>299</top>
  56.             <right>139</right>
  57.             <bottom>338</bottom>
  58.         </rect>
  59.         <style>transparent</style>
  60.         <showName> <false /> </showName>
  61.         <highlight> <false /> </highlight>
  62.         <autoHighlight> <true /> </autoHighlight>
  63.         <sharedHighlight> <true /> </sharedHighlight>
  64.         <family>0</family>
  65.         <titleWidth>0</titleWidth>
  66.         <icon>133</icon>
  67.         <textAlign>center</textAlign>
  68.         <font>Chicago</font>
  69.         <textSize>12</textSize>
  70.         <textStyle>plain</textStyle>
  71.         <name>Cancel Order</name>
  72.         <script>on mouseUpdoMenu "Quit HyperCard"end mouseUp</script>
  73.     </part>
  74.     <part>
  75.         <id>14</id>
  76.         <type>button</type>
  77.         <visible> <true /> </visible>
  78.         <reserved5> 0 </reserved5>
  79.         <reserved4> 0 </reserved4>
  80.         <reserved3> 0 </reserved3>
  81.         <reserved2> 0 </reserved2>
  82.         <reserved1> 0 </reserved1>
  83.         <enabled> <true /> </enabled>
  84.         <rect>
  85.             <left>55</left>
  86.             <top>297</top>
  87.             <right>95</right>
  88.             <bottom>339</bottom>
  89.         </rect>
  90.         <style>transparent</style>
  91.         <showName> <false /> </showName>
  92.         <highlight> <false /> </highlight>
  93.         <autoHighlight> <true /> </autoHighlight>
  94.         <sharedHighlight> <true /> </sharedHighlight>
  95.         <family>0</family>
  96.         <titleWidth>0</titleWidth>
  97.         <icon>130</icon>
  98.         <textAlign>center</textAlign>
  99.         <font>Chicago</font>
  100.         <textSize>12</textSize>
  101.         <textStyle>plain</textStyle>
  102.         <name>Accept Order</name>
  103.         <script>on mouseUpglobal overdogglobal orderstatusglobal Totalglobal ShirtSizeput empty into ShirtSizeif field "Items" is empty then-- send mouseup to bkgnd button "Cancel Order"answer "There is no order to accept.  "¬¨&"Click 'Catalog' to add some items or"¬¨&&"click 'Cancel Order' if you do not wish to order at this time."exit mouseUpend ifanswer "Print a copy of this order form for your records?"¬¨with "No" or "Yes"if it is "Yes" then doMenu "Print Card"answer "Send this order to TelePrint systems for processing?"¬¨with "No" or "Yes"if it is not "Yes" thenexit mouseUpelse if it is "Yes" thenif Total > 99.99 thenanswer "Would you like a free TelePrint‚Ñ¢ T-Shirt?" with "No" or "Yes"if it is "Yes" thenanswer "Please choose a shirt size" with "Medium" or "Large" or "XLarge"put it into ShirtSizeend ifend ifend ifput "Accepted" into orderstatussend goNext to this stackend mouseUp</script>
  104.     </part>
  105.     <part>
  106.         <id>21</id>
  107.         <type>field</type>
  108.         <visible> <true /> </visible>
  109.         <dontWrap> <true /> </dontWrap>
  110.         <dontSearch> <false /> </dontSearch>
  111.         <sharedText> <false /> </sharedText>
  112.         <fixedLineHeight> <true /> </fixedLineHeight>
  113.         <autoTab> <true /> </autoTab>
  114.         <lockText> <true /> </lockText>
  115.         <rect>
  116.             <left>266</left>
  117.             <top>45</top>
  118.             <right>485</right>
  119.             <bottom>119</bottom>
  120.         </rect>
  121.         <style>rectangle</style>
  122.         <autoSelect> <false /> </autoSelect>
  123.         <showLines> <false /> </showLines>
  124.         <wideMargins> <false /> </wideMargins>
  125.         <multipleLines> <false /> </multipleLines>
  126.         <reservedFamily> 0 </reservedFamily>
  127.         <titleWidth>0</titleWidth>
  128.         <icon>0</icon>
  129.         <textAlign>left</textAlign>
  130.         <font>Monaco</font>
  131.         <textSize>9</textSize>
  132.         <textStyle>plain</textStyle>
  133.         <textHeight>12</textHeight>
  134.         <name>ShipTo</name>
  135.         <script></script>
  136.     </part>
  137.     <part>
  138.         <id>22</id>
  139.         <type>field</type>
  140.         <visible> <true /> </visible>
  141.         <dontWrap> <true /> </dontWrap>
  142.         <dontSearch> <false /> </dontSearch>
  143.         <sharedText> <false /> </sharedText>
  144.         <fixedLineHeight> <true /> </fixedLineHeight>
  145.         <autoTab> <false /> </autoTab>
  146.         <lockText> <true /> </lockText>
  147.         <rect>
  148.             <left>9</left>
  149.             <top>131</top>
  150.             <right>501</right>
  151.             <bottom>266</bottom>
  152.         </rect>
  153.         <style>scrolling</style>
  154.         <autoSelect> <false /> </autoSelect>
  155.         <showLines> <false /> </showLines>
  156.         <wideMargins> <false /> </wideMargins>
  157.         <multipleLines> <false /> </multipleLines>
  158.         <reservedFamily> 0 </reservedFamily>
  159.         <titleWidth>0</titleWidth>
  160.         <icon>0</icon>
  161.         <textAlign>left</textAlign>
  162.         <font>Monaco</font>
  163.         <textSize>9</textSize>
  164.         <textStyle>plain</textStyle>
  165.         <textHeight>12</textHeight>
  166.         <name>Items</name>
  167.         <script>on mouseDownget clickLine()if line it of me is not empty thenselect line it of meelseselect emptyend ifend mouseDownon mouseStillDownget clickLine()if line it of me is not empty thenselect line it of meelseselect emptyend ifend mouseStillDownon mouseUpglobal ItemsSaveglobal Itemsput Items into ItemsSaveselect emptyput clickLine() into whichLineif line whichLine of Items is not empty thenput word 1 of line whichLine of Items into temp1put word 2 of line whichLine of Items into temp2if temp2 is "-" thenanswer "Delete this item from order?" with "Delete" or "Cancel"if it is "Delete" thendelete line whichline of ItemscalcTotalend ifexit mouseUpelseanswer "Delete this item, or modify it?"¬¨with "Delete" or "Modify" or "Cancel"if it is "Cancel" thenexit mouseUpelse if it is "Delete" thenset cursor to busydelete line whichLine of ItemscalcTotalKillItem temp2 -- deletes from ItemsDetailopenCardexit mouseUpend ifend ifset cursor to busydelete line whichLine of ItemscalcTotalset cursor to busyoldItem temp1, temp2global XTemplif XTempl is -1 thenexit MouseUpend ifpush cardeditItemend ifend mouseUp--function clickLine returns the line of the target field--over which the mouse was clicked.  It allows 4 pixels under the--baseline for the psychological effect of descenders.function clickLineif the mouseLoc is within the rect of the target thenreturn ((the mouseV - the top of the target +¬¨the scroll of the target)¬¨div the textheight of the target) + 1else return 0end clickLine</script>
  168.     </part>
  169.     <part>
  170.         <id>23</id>
  171.         <type>button</type>
  172.         <visible> <true /> </visible>
  173.         <reserved5> 0 </reserved5>
  174.         <reserved4> 0 </reserved4>
  175.         <reserved3> 0 </reserved3>
  176.         <reserved2> 0 </reserved2>
  177.         <reserved1> 0 </reserved1>
  178.         <enabled> <true /> </enabled>
  179.         <rect>
  180.             <left>9</left>
  181.             <top>299</top>
  182.             <right>48</right>
  183.             <bottom>338</bottom>
  184.         </rect>
  185.         <style>transparent</style>
  186.         <showName> <false /> </showName>
  187.         <highlight> <false /> </highlight>
  188.         <autoHighlight> <true /> </autoHighlight>
  189.         <sharedHighlight> <true /> </sharedHighlight>
  190.         <family>0</family>
  191.         <titleWidth>0</titleWidth>
  192.         <icon>129</icon>
  193.         <textAlign>center</textAlign>
  194.         <font>Chicago</font>
  195.         <textSize>12</textSize>
  196.         <textStyle>plain</textStyle>
  197.         <name>Catalog</name>
  198.         <script>on mouseUpgoNextend mouseUp</script>
  199.     </part>
  200.     <part>
  201.         <id>24</id>
  202.         <type>button</type>
  203.         <visible> <false /> </visible>
  204.         <reserved5> 0 </reserved5>
  205.         <reserved4> 0 </reserved4>
  206.         <reserved3> 0 </reserved3>
  207.         <reserved2> 0 </reserved2>
  208.         <reserved1> 0 </reserved1>
  209.         <enabled> <true /> </enabled>
  210.         <rect>
  211.             <left>15</left>
  212.             <top>313</top>
  213.             <right>106</right>
  214.             <bottom>335</bottom>
  215.         </rect>
  216.         <style>roundrect</style>
  217.         <showName> <true /> </showName>
  218.         <highlight> <false /> </highlight>
  219.         <autoHighlight> <true /> </autoHighlight>
  220.         <sharedHighlight> <true /> </sharedHighlight>
  221.         <family>0</family>
  222.         <titleWidth>0</titleWidth>
  223.         <icon>0</icon>
  224.         <textAlign>center</textAlign>
  225.         <font>Chicago</font>
  226.         <textSize>12</textSize>
  227.         <textStyle>plain</textStyle>
  228.         <name>Delete Item</name>
  229.         <script>on mouseUpglobal whichLineif whichLine is not empty thensubtract char 70 to 80 of line whichLine of field "Items"¬¨from field "subtotal"calctotaldelete line whichLine of field "Items"get line whichLine of field "Items"if it is empty thenif whichLine > 1 thensubtract 1 from whichLineselect line whichLine of field "Items"elseput empty into whichLineend ifelseselect line whichLine of field "Items"end ifend ifend mouseUp</script>
  230.     </part>
  231.     <part>
  232.         <id>26</id>
  233.         <type>field</type>
  234.         <visible> <true /> </visible>
  235.         <dontWrap> <false /> </dontWrap>
  236.         <dontSearch> <false /> </dontSearch>
  237.         <sharedText> <false /> </sharedText>
  238.         <fixedLineHeight> <true /> </fixedLineHeight>
  239.         <autoTab> <false /> </autoTab>
  240.         <lockText> <true /> </lockText>
  241.         <rect>
  242.             <left>423</left>
  243.             <top>317</top>
  244.             <right>485</right>
  245.             <bottom>331</bottom>
  246.         </rect>
  247.         <style>transparent</style>
  248.         <autoSelect> <false /> </autoSelect>
  249.         <showLines> <false /> </showLines>
  250.         <wideMargins> <false /> </wideMargins>
  251.         <multipleLines> <false /> </multipleLines>
  252.         <reservedFamily> 0 </reservedFamily>
  253.         <titleWidth>0</titleWidth>
  254.         <icon>0</icon>
  255.         <textAlign>right</textAlign>
  256.         <font>Monaco</font>
  257.         <textSize>9</textSize>
  258.         <textStyle>plain</textStyle>
  259.         <textHeight>12</textHeight>
  260.         <name>Total</name>
  261.         <script></script>
  262.     </part>
  263.     <part>
  264.         <id>37</id>
  265.         <type>field</type>
  266.         <visible> <true /> </visible>
  267.         <dontWrap> <false /> </dontWrap>
  268.         <dontSearch> <false /> </dontSearch>
  269.         <sharedText> <false /> </sharedText>
  270.         <fixedLineHeight> <true /> </fixedLineHeight>
  271.         <autoTab> <false /> </autoTab>
  272.         <lockText> <true /> </lockText>
  273.         <rect>
  274.             <left>423</left>
  275.             <top>304</top>
  276.             <right>485</right>
  277.             <bottom>318</bottom>
  278.         </rect>
  279.         <style>rectangle</style>
  280.         <autoSelect> <false /> </autoSelect>
  281.         <showLines> <false /> </showLines>
  282.         <wideMargins> <false /> </wideMargins>
  283.         <multipleLines> <false /> </multipleLines>
  284.         <reservedFamily> 0 </reservedFamily>
  285.         <titleWidth>0</titleWidth>
  286.         <icon>0</icon>
  287.         <textAlign>right</textAlign>
  288.         <font>Monaco</font>
  289.         <textSize>9</textSize>
  290.         <textStyle>plain</textStyle>
  291.         <textHeight>12</textHeight>
  292.         <name>P&H</name>
  293.         <script></script>
  294.     </part>
  295.     <part>
  296.         <id>39</id>
  297.         <type>field</type>
  298.         <visible> <true /> </visible>
  299.         <dontWrap> <false /> </dontWrap>
  300.         <dontSearch> <false /> </dontSearch>
  301.         <sharedText> <false /> </sharedText>
  302.         <fixedLineHeight> <true /> </fixedLineHeight>
  303.         <autoTab> <false /> </autoTab>
  304.         <lockText> <true /> </lockText>
  305.         <rect>
  306.             <left>423</left>
  307.             <top>291</top>
  308.             <right>485</right>
  309.             <bottom>305</bottom>
  310.         </rect>
  311.         <style>rectangle</style>
  312.         <autoSelect> <false /> </autoSelect>
  313.         <showLines> <false /> </showLines>
  314.         <wideMargins> <false /> </wideMargins>
  315.         <multipleLines> <false /> </multipleLines>
  316.         <reservedFamily> 0 </reservedFamily>
  317.         <titleWidth>0</titleWidth>
  318.         <icon>0</icon>
  319.         <textAlign>right</textAlign>
  320.         <font>Monaco</font>
  321.         <textSize>9</textSize>
  322.         <textStyle>plain</textStyle>
  323.         <textHeight>12</textHeight>
  324.         <name>Tax</name>
  325.         <script></script>
  326.     </part>
  327.     <part>
  328.         <id>40</id>
  329.         <type>field</type>
  330.         <visible> <true /> </visible>
  331.         <dontWrap> <false /> </dontWrap>
  332.         <dontSearch> <false /> </dontSearch>
  333.         <sharedText> <false /> </sharedText>
  334.         <fixedLineHeight> <true /> </fixedLineHeight>
  335.         <autoTab> <false /> </autoTab>
  336.         <lockText> <true /> </lockText>
  337.         <rect>
  338.             <left>423</left>
  339.             <top>278</top>
  340.             <right>485</right>
  341.             <bottom>292</bottom>
  342.         </rect>
  343.         <style>rectangle</style>
  344.         <autoSelect> <false /> </autoSelect>
  345.         <showLines> <false /> </showLines>
  346.         <wideMargins> <false /> </wideMargins>
  347.         <multipleLines> <false /> </multipleLines>
  348.         <reservedFamily> 0 </reservedFamily>
  349.         <titleWidth>0</titleWidth>
  350.         <icon>0</icon>
  351.         <textAlign>right</textAlign>
  352.         <font>Monaco</font>
  353.         <textSize>9</textSize>
  354.         <textStyle>plain</textStyle>
  355.         <textHeight>12</textHeight>
  356.         <name>SubTotal</name>
  357.         <script></script>
  358.     </part>
  359.     <part>
  360.         <id>42</id>
  361.         <type>field</type>
  362.         <visible> <true /> </visible>
  363.         <dontWrap> <false /> </dontWrap>
  364.         <dontSearch> <false /> </dontSearch>
  365.         <sharedText> <false /> </sharedText>
  366.         <fixedLineHeight> <true /> </fixedLineHeight>
  367.         <autoTab> <false /> </autoTab>
  368.         <lockText> <true /> </lockText>
  369.         <rect>
  370.             <left>318</left>
  371.             <top>291</top>
  372.             <right>424</right>
  373.             <bottom>305</bottom>
  374.         </rect>
  375.         <style>transparent</style>
  376.         <autoSelect> <false /> </autoSelect>
  377.         <showLines> <false /> </showLines>
  378.         <wideMargins> <false /> </wideMargins>
  379.         <multipleLines> <false /> </multipleLines>
  380.         <reservedFamily> 0 </reservedFamily>
  381.         <titleWidth>0</titleWidth>
  382.         <icon>0</icon>
  383.         <textAlign>right</textAlign>
  384.         <font>Geneva</font>
  385.         <textSize>9</textSize>
  386.         <textStyle>plain</textStyle>
  387.         <textHeight>12</textHeight>
  388.         <name>TaxRate</name>
  389.         <script></script>
  390.     </part>
  391.     <part>
  392.         <id>44</id>
  393.         <type>field</type>
  394.         <visible> <true /> </visible>
  395.         <dontWrap> <false /> </dontWrap>
  396.         <dontSearch> <false /> </dontSearch>
  397.         <sharedText> <false /> </sharedText>
  398.         <fixedLineHeight> <true /> </fixedLineHeight>
  399.         <autoTab> <false /> </autoTab>
  400.         <lockText> <true /> </lockText>
  401.         <rect>
  402.             <left>423</left>
  403.             <top>265</top>
  404.             <right>485</right>
  405.             <bottom>279</bottom>
  406.         </rect>
  407.         <style>rectangle</style>
  408.         <autoSelect> <false /> </autoSelect>
  409.         <showLines> <false /> </showLines>
  410.         <wideMargins> <false /> </wideMargins>
  411.         <multipleLines> <false /> </multipleLines>
  412.         <reservedFamily> 0 </reservedFamily>
  413.         <titleWidth>0</titleWidth>
  414.         <icon>0</icon>
  415.         <textAlign>right</textAlign>
  416.         <font>Monaco</font>
  417.         <textSize>9</textSize>
  418.         <textStyle>plain</textStyle>
  419.         <textHeight>12</textHeight>
  420.         <name>Discount</name>
  421.         <script></script>
  422.     </part>
  423.     <name>Order Main</name>
  424.     <script>on goNextglobal MainNum,DetailNum,NATemppush cardvisual wipe upgo to bg "Catalog"end goNexton openCardglobal BillToglobal ShipToglobal Itemsglobal Subtotalglobal Discountglobal Taxglobal PHglobal Totalcalctotalput BillTo into field "BillTo"put ShipTo into field "ShipTo"put Items into field "Items"put Subtotal into field "Subtotal"put Discount into field "Discount"put Tax into field "Tax"put PH into field "P&H"put Total into field "Total"fixscrollpass opencardend openCardon fixscrollget the number of lines in field "Items"multiply it by the textHeight of field "Items"subtract the height of field "Items" from itadd 2 to itif it < 0 then get 0set the scroll of field "Items" to itend fixscrollon returnKeyglobal overdogif overdog then pass returnKeyclick at the loc of bg button id 23end returnKeyon enterKeyglobal overdogif overdog then pass enterKeyclick at the loc of bg button id 23end enterKeyon idleget the selectedTextif it is not empty thensend mouseUp to field "Items"end ifpass idleend idleon closeCardglobal BillToglobal ShipToglobal Itemsglobal SubTotalglobal Taxglobal PHglobal Totalput empty into field "BillTo"put empty into field "ShipTo"put empty into field "Items"put empty into field "Discount"put empty into field "SubTotal"put empty into field "Tax"put empty into field "P&H"put empty into field "Total"end closeCard</script>
  425. </background>
  426.